home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
301_400
/
DISK0353
/
DISK0353.ZIP
/
FONTEDIT.DOC
< prev
next >
Wrap
Text File
|
1984-10-15
|
3KB
|
55 lines
╔═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╗
╠═╬═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╬═╣
╠═╣ F O N T E D I T ╠═╣
╠═╬═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╦═╬═╣
╚═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╝
modified for the OKIDATA 93 by Neil J. Rubenking
FONTEDIT started out as a listing in one of the major magazines (sorry, I
can't remember which). It was designed for an Epson, but I modified it for
the OKIDATA 93 (should work also with OKIDATA 92, and maybe 84?, 82?). At the
same time I added in another magazine program to get a "lookup" of the ROM dot
definition of the first 128 characters, hoping to make it possible to redefine
without starting from scratch. Since the printer will not properly print a
a pattern that includes two horizontally adjacent dots ( ▄▄ is no good!) the
ROM lookups aren't as much of a help as they might be.
FONTEDIT creates another BASIC program which, when run, loads up to 96
characters in the OKIDATA, replacing your choice of any 96 regular characters.
The created program also turns on the DLCG (Down Loadable Character Generator)
font. This font stays on until either the printer is turned off or you send
the code that selects the regular font. (Note that some Word Processing
programs automatically clear the printer of codes when they start.) The DLCG
font stays loaded until the printer is turned off or cleared, so you can go
back and forth between the DLCG font and the regular font.
You can append more redefinitions (up to the limit of 96) to an existing
font file, but you must know the line number the new items should start on.
If you load and list the font program, you must not SAVE it without using the
ASCII option (SAVE"B:NEWCHARS.BAS",A). If you SAVE it without that option,
you will not be able to append to it.
To turn DLCG font off: LPRINT CHR$(27);"0";
To turn DLGC on again: LPRINT CHR$(27);"2";
When you TEST a new character on the printer, the redefinition goes into
the DLCG and stays unless (1) you redefine the same character another way,
(2) it gets "pushed out" by having more that 96 characters defined, or (3) the
printer is turned off or cleared. If you have done a lot of TESTing, you may
want to just turn the printer off and on again before running the font file
create.
The program NEWCHARS.BAS on this disk redefines the small alphabetic
characters to new and bizarre forms--try running it and then TYPEing this
document to the printer! The characters "c" through "m" are now line drawing
characters. In order to actually use them to draw lines, you will have to set
the line spacing to 1/12".
To reset spacing to 12 lines/inch: LPRINT CHR$(27);"%9";CHR$(12);
To set spacing back to 6 per inch: LPRINT CHR$(27);"6";
Neil J. Rubenking (13 September 1984)